package com.ncui.wisdomLearn.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.util.Date;

/**
 * 登录日志表(LoginLog)表 实体类
 *
 * @author lvlele
 * @since 2025-01-07 15:12:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("login_log")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LoginLog extends Model<LoginLog> {
    /**
     * 日志id
     */
    @TableId(type = IdType.AUTO)
    private Long logId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 登录ip
     */
    private String loginIp;
    /**
     * 登录时间
     */
    private Date loginTime;
    /**
     * 登出时间
     */
    private Date logoutTime;
}

